/*
 * Copyright 2010-2012 Susanta Tewari. <freecode4susant@users.sourceforge.net>
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

package genomemap.cef.pui;

import cef.pui.DescribeObjectEventImpl;
import cef.pui.EventConstructionException;
import cef.pui.pob.Builder;
import genomemap.cef.pui.pob.Builders_Gen;
import genomemap.data.KSA00Data;
import genomemap.data.OrganismData;
import genomemap.data.TAB08Data;

import java.util.Properties;

/**
 *
 *
 * @version 1.3.0
 * @author Susanta Tewari
 * @history Created on 2/5/13
 * @since 1.3.0
 */
public class DescribeObjectEventImpls {

    /**
     * The required properties are:
     * <ul>
     *     <li>{@code genomemap.builder.KSA00Data.url = ksa00data:xml//URL }<a href="genomemap/cef/pui/pob/doc-files/ksa00-data.xml.txt">file format</a>, must accompany the <a href="genomemap/cef/pui/pob/doc-files/KSA00Data.xsd.txt">schema</a></li>
     * </ul>
     *
     * @version 1.3.0
     * @since 1.3.0
     * @history Created on 02/09/2013
     * @author Susanta Tewari
     */
    public static final class DescribeKSA00Data extends DescribeObjectEventImpl<KSA00Data> {

        public DescribeKSA00Data(final Properties props) throws EventConstructionException {

            super(props);

            super.processEventProperties(getImplementedEventInterfaces());
        }

        @Override
        protected Builder<KSA00Data> getBuilder(final Properties props) {
            return Builders_Gen.of_Data_KSA00_File(props, null);
        }
    }

    /**
     * The required properties are:
     * <ul>
     *     <li>{@code genomemap.builder.OrganismData.linkage-groups = comma separated linkage groups}</li>
     *     <li>{@code genomemap.builder.OrganismData.url = organismdata:files//URL }</li>
     * </ul>
     *
     * @version 1.3.0
     * @since 1.3.0
     * @history Created on 02/05/2013
     * @author Susanta Tewari
     */
    public static final class DescribeOrganismData extends DescribeObjectEventImpl<OrganismData> {

        public DescribeOrganismData(final Properties props) throws EventConstructionException {

            super(props);

            super.processEventProperties(getImplementedEventInterfaces());
        }

        @Override
        protected Builder<OrganismData> getBuilder(final Properties props) {
            return Builders_Gen.of_Data_OrganismData_Dir(props, null);
        }
    }

    /**
     * The required properties are:
     * <ul>
     *     <li>{@code genomemap.builder.TAB08Data.url = tab08data:xml//URL }<a href="genomemap/cef/pui/pob/doc-files/tab08-data.xml.txt">file format</a>, must accompany the <a href="genomemap/cef/pui/pob/doc-files/TAB08Data.xsd.txt">schema</a></li>
     * </ul>
     *
     * @version 1.3.0
     * @since 1.3.0
     * @history Created on 02/09/2013
     * @author Susanta Tewari
     */
    public static final class DescribeTAB08Data extends DescribeObjectEventImpl<TAB08Data> {

        public DescribeTAB08Data(final Properties props) throws EventConstructionException {

            super(props);

            super.processEventProperties(getImplementedEventInterfaces());
        }

        @Override
        protected Builder<TAB08Data> getBuilder(final Properties props) {
            return Builders_Gen.of_Data_TAB08_File(props, null);
        }
    }
}
